--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit d8e2e2a45f590eb5c4e650dc10ba02444f713619
Parents : 0fc15e6
Author : Mark Qvist <mark@unsigned.io>
Date : 2024-09-12T10:11:49+02:00
Fix stamp cost extractor function
Changes
Diff
diff --git a/LXMF/LXMF.py b/LXMF/LXMF.py
index 146d8ec..23b10b3 100644
--- a/LXMF/LXMF.py
+++ b/LXMF/LXMF.py
@@ -112,7 +112,7 @@ def display_name_from_app_data(app_data=None):
return app_data.decode("utf-8")
def stamp_cost_from_app_data(app_data=None):
- if app_data == None:
+ if app_data == None or app_data == b"":
return None
else:
# Version 0.5.0+ announce format
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────